<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the copyWith method from the TextFieldConfiguration class, for the Dart programming language.">
  <title>copyWith method - TextFieldConfiguration class - flutter_form_builder library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="flutter_form_builder/flutter_form_builder-library.html">flutter_form_builder</a></li>
    <li><a href="flutter_form_builder/TextFieldConfiguration-class.html">TextFieldConfiguration<span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></a></li>
    <li class="self-crumb">copyWith method</li>
  </ol>
  <div class="self-name">copyWith</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="flutter_form_builder/flutter_form_builder-library.html">flutter_form_builder</a></li>
      <li><a href="flutter_form_builder/TextFieldConfiguration-class.html">TextFieldConfiguration<span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></a></li>
      <li class="self-crumb">copyWith method</li>
    </ol>
    
    <h5>TextFieldConfiguration class</h5>
    <ol>
    
        <li class="section-title"><a href="flutter_form_builder/TextFieldConfiguration-class.html#constructors">Constructors</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/TextFieldConfiguration.html">TextFieldConfiguration</a></li>
    
        <li class="section-title">
            <a href="flutter_form_builder/TextFieldConfiguration-class.html#instance-properties">Properties</a>
        </li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/autocorrect.html">autocorrect</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/autofocus.html">autofocus</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/controller.html">controller</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/cursorColor.html">cursorColor</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/cursorRadius.html">cursorRadius</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/cursorWidth.html">cursorWidth</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/decoration.html">decoration</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/enabled.html">enabled</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/enableInteractiveSelection.html">enableInteractiveSelection</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/focusNode.html">focusNode</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/inputFormatters.html">inputFormatters</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/keyboardAppearance.html">keyboardAppearance</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/keyboardType.html">keyboardType</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/maxLength.html">maxLength</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/maxLengthEnforced.html">maxLengthEnforced</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/maxLines.html">maxLines</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/minLines.html">minLines</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/obscureText.html">obscureText</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/onChanged.html">onChanged</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/onEditingComplete.html">onEditingComplete</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/onSubmitted.html">onSubmitted</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/onTap.html">onTap</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/scrollPadding.html">scrollPadding</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/style.html">style</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/textAlign.html">textAlign</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/textCapitalization.html">textCapitalization</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/textDirection.html">textDirection</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/textInputAction.html">textInputAction</a></li>
        <li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li>
        <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
        <li class="section-title"><a href="flutter_form_builder/TextFieldConfiguration-class.html#instance-methods">Methods</a></li>
        <li><a href="flutter_form_builder/TextFieldConfiguration/copyWith.html">copyWith</a></li>
        <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
        <li class="inherited"><a href="dart-core/Object/toString.html">toString</a></li>
    
        <li class="section-title inherited"><a href="flutter_form_builder/TextFieldConfiguration-class.html#operators">Operators</a></li>
        <li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li>
    
    
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-method">copyWith</span> method</h1></div>

    <section class="multi-line-signature">
      <span class="returntype">dynamic</span>
            <span class="name ">copyWith</span>
(<wbr>{<span class="parameter" id="copyWith-param-decoration"><span class="type-annotation">InputDecoration</span> <span class="parameter-name">decoration</span>, </span> <span class="parameter" id="copyWith-param-style"><span class="type-annotation">TextStyle</span> <span class="parameter-name">style</span>, </span> <span class="parameter" id="copyWith-param-controller"><span class="type-annotation">TextEditingController</span> <span class="parameter-name">controller</span>, </span> <span class="parameter" id="copyWith-param-onChanged"><span class="type-annotation">ValueChanged<span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span> <span class="parameter-name">onChanged</span>, </span> <span class="parameter" id="copyWith-param-onSubmitted"><span class="type-annotation">ValueChanged<span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span> <span class="parameter-name">onSubmitted</span>, </span> <span class="parameter" id="copyWith-param-obscureText"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">obscureText</span></span> <span class="parameter" id="copyWith-param-maxLengthEnforced"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">maxLengthEnforced</span></span> <span class="parameter" id="copyWith-param-maxLength"><span class="type-annotation"><a href="dart-core/int-class.html">int</a></span> <span class="parameter-name">maxLength</span>, </span> <span class="parameter" id="copyWith-param-maxLines"><span class="type-annotation"><a href="dart-core/int-class.html">int</a></span> <span class="parameter-name">maxLines</span>, </span> <span class="parameter" id="copyWith-param-minLines"><span class="type-annotation"><a href="dart-core/int-class.html">int</a></span> <span class="parameter-name">minLines</span>, </span> <span class="parameter" id="copyWith-param-autocorrect"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">autocorrect</span></span> <span class="parameter" id="copyWith-param-inputFormatters"><span class="type-annotation"><a href="dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter">TextInputFormatter</span>&gt;</span></span> <span class="parameter-name">inputFormatters</span>, </span> <span class="parameter" id="copyWith-param-autofocus"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">autofocus</span></span> <span class="parameter" id="copyWith-param-keyboardType"><span class="type-annotation">TextInputType</span> <span class="parameter-name">keyboardType</span>, </span> <span class="parameter" id="copyWith-param-enabled"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enabled</span></span> <span class="parameter" id="copyWith-param-textAlign"><span class="type-annotation"><a href="dart-ui/TextAlign-class.html">TextAlign</a></span> <span class="parameter-name">textAlign</span>, </span> <span class="parameter" id="copyWith-param-focusNode"><span class="type-annotation">FocusNode</span> <span class="parameter-name">focusNode</span>, </span> <span class="parameter" id="copyWith-param-cursorColor"><span class="type-annotation"><a href="dart-ui/Color-class.html">Color</a></span> <span class="parameter-name">cursorColor</span>, </span> <span class="parameter" id="copyWith-param-cursorRadius"><span class="type-annotation"><a href="dart-ui/Radius-class.html">Radius</a></span> <span class="parameter-name">cursorRadius</span>, </span> <span class="parameter" id="copyWith-param-cursorWidth"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">cursorWidth</span>, </span> <span class="parameter" id="copyWith-param-keyboardAppearance"><span class="type-annotation"><a href="dart-ui/Brightness-class.html">Brightness</a></span> <span class="parameter-name">keyboardAppearance</span>, </span> <span class="parameter" id="copyWith-param-onEditingComplete"><span class="type-annotation"><a href="dart-ui/VoidCallback.html">VoidCallback</a></span> <span class="parameter-name">onEditingComplete</span>, </span> <span class="parameter" id="copyWith-param-onTap"><span class="type-annotation">GestureTapCallback</span> <span class="parameter-name">onTap</span>, </span> <span class="parameter" id="copyWith-param-scrollPadding"><span class="type-annotation">EdgeInsets</span> <span class="parameter-name">scrollPadding</span>, </span> <span class="parameter" id="copyWith-param-textCapitalization"><span class="type-annotation">TextCapitalization</span> <span class="parameter-name">textCapitalization</span>, </span> <span class="parameter" id="copyWith-param-textDirection"><span class="type-annotation"><a href="dart-ui/TextDirection-class.html">TextDirection</a></span> <span class="parameter-name">textDirection</span>, </span> <span class="parameter" id="copyWith-param-textInputAction"><span class="type-annotation">TextInputAction</span> <span class="parameter-name">textInputAction</span>, </span> <span class="parameter" id="copyWith-param-enableInteractiveSelection"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableInteractiveSelection</span></span> })
      
    </section>
    <section class="desc markdown">
      <p>Copies the <a href="flutter_form_builder/TextFieldConfiguration-class.html">TextFieldConfiguration</a> and only changes the specified
properties</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">copyWith(
    {InputDecoration decoration,
    TextStyle style,
    TextEditingController controller,
    ValueChanged&lt;T&gt; onChanged,
    ValueChanged&lt;T&gt; onSubmitted,
    bool obscureText,
    bool maxLengthEnforced,
    int maxLength,
    int maxLines,
    int minLines,
    bool autocorrect,
    List&lt;TextInputFormatter&gt; inputFormatters,
    bool autofocus,
    TextInputType keyboardType,
    bool enabled,
    TextAlign textAlign,
    FocusNode focusNode,
    Color cursorColor,
    Radius cursorRadius,
    double cursorWidth,
    Brightness keyboardAppearance,
    VoidCallback onEditingComplete,
    GestureTapCallback onTap,
    EdgeInsets scrollPadding,
    TextCapitalization textCapitalization,
    TextDirection textDirection,
    TextInputAction textInputAction,
    bool enableInteractiveSelection}) {
  return TextFieldConfiguration(
    decoration: decoration ?? this.decoration,
    style: style ?? this.style,
    controller: controller ?? this.controller,
    onChanged: onChanged ?? this.onChanged,
    onSubmitted: onSubmitted ?? this.onSubmitted,
    obscureText: obscureText ?? this.obscureText,
    maxLengthEnforced: maxLengthEnforced ?? this.maxLengthEnforced,
    maxLength: maxLength ?? this.maxLength,
    maxLines: maxLines ?? this.maxLines,
    minLines: minLines ?? this.minLines,
    autocorrect: autocorrect ?? this.autocorrect,
    inputFormatters: inputFormatters ?? this.inputFormatters,
    autofocus: autofocus ?? this.autofocus,
    keyboardType: keyboardType ?? this.keyboardType,
    enabled: enabled ?? this.enabled,
    textAlign: textAlign ?? this.textAlign,
    focusNode: focusNode ?? this.focusNode,
    cursorColor: cursorColor ?? this.cursorColor,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    onEditingComplete: onEditingComplete ?? this.onEditingComplete,
    onTap: onTap ?? this.onTap,
    scrollPadding: scrollPadding ?? this.scrollPadding,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    textInputAction: textInputAction ?? this.textInputAction,
    textDirection: textDirection ?? this.textDirection,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
  );
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
